def my_sum(*args, **kwargs):
    num = 0
    for i in args:
        num += i;

    for k in kwargs.values():
        num += k;
    print('num:', num)
    return num


my_list = [1, 2, 3, 4]
my_dict = {'a': 1, 'd': 4, 'c': 3, 'b': 2}

my_list.sort()
# my_sum(*my_list)
my_sum(**my_dict)
